source /etc/profile
go env -w GOSUMDB='off'
go env -w GOPROXY=http://192.168.20.10:8081/repository/go-group/
go env -w GO111MODULE=on

npm config set registry http://192.168.20.10:8081/repository/npm-group/ #使用淘宝源 registry，下载更快

npm config set registry https://registry.npm.taobao.org
go env -w GOPROXY=https://goproxy.cn

#sudo apt-get install protoc-gen-go -y

base_dir=$(
  cd "$(dirname "$0")"
  pwd
)
echo $base_dir



go env -w CGO_ENABLED=0
go env -w GOOS=windows
go env -w GOARCH=amd64



#_ "net/http/pprof"
#	go func() {
#		http.ListenAndServe("0.0.0.0:6060", nil)
#	}()

#更新包
#go get -u && go mod tidy
#go get -u all


npm install -g npm-check-updates #ncu 更新依賴
#cd ../vue2_base/ &&  ncu -u && npm install

cd Web/WebShop
ncu -u && npm install

cd $base_dir
